
function objectOrder(orderId,enterpriseId,uid){
    if(!orderId||!enterpriseId||!uid){
        throw new Error('参数错误');
    }
    this.orderId = orderId;
    this.enterpriseId = enterpriseId;
    this.uid = uid;
}
//添加log
objectOrder.prototype.addlog = function(message){
    if(!message){
        throw new Error('日志内容不能为空');
    }
    var data = {orderId:this.orderId,enterpriseId:this.enterpriseId,uid:this.uid};
    //$.post('/orderlog/add',{data:JSON.stringify(data)},function(res){
    //   var itmes = res;
    //   if(itmes.result=='OK'){
    //
    //   }else if(itmes){
    //       throw new Error(itmes.msg);
    //   }else{
    //       throw new Error('请求服务器错误');
    //   }
    //},'json');
}
//删除
